package com.example.reagent_management.ui.setting

import android.view.View
import com.example.lib_base.base.BaseDBFragment
import com.example.lib_base.base.DataBindingConfig
import com.example.reagent_management.BR
import com.example.reagent_management.R
import com.example.reagent_management.databinding.FragmentSettingBinding
import java.lang.ref.WeakReference

class TestFragment : BaseDBFragment() {

    @Test var s = "温湿度 提醒设置"

    override fun getDataBindingConfig(): DataBindingConfig {
        return DataBindingConfig(R.layout.fragment_setting)
                .addBindingParam(BR.title, "设置提醒")
    }

    override fun initViewModel() {

    }

    override fun initViewOrObserve() {
        with(binding as FragmentSettingBinding) {
            button2.setOnClickListener {
//               val  DES = "sdadasd"
            }

            button.setOnClickListener (object:View.OnClickListener{
                override fun onClick(v: View?) {
                    s = "fdsg"
                }
            })
            button3.setOnClickListener {
                UserLogTool.writeLogToFile(WeakReference(requireContext()),"TestFragment",it,"fas")
            }
        }
    }
}


